<template>
  <div class="app">
    <div class="header">
      <router-link to="/index/recommend" active-class="active">推荐榜</router-link>
      <router-link to="/index/hot"  active-class="active">热歌榜</router-link>
      <router-link to="/index/seach" active-class="active">搜索</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>
<script>
export default {};
</script>
<style>
.header {
  display: flex;
  font-size: 0.32rem;
  margin-bottom: .2rem;
}
.header a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    color: #000;
}
.active {
    border-bottom:2px solid red;
    color: red;
}
</style>